QT       -= gui core

TARGET   = porridge_test
CONFIG   = debug
CONFIG   += console
CONFIG   -= app_bundle

TEMPLATE = app

QMAKE_CXXFLAGS += -std=c++0x

win32:INCLUDEPATH += \
    "C:\Program Files\PostgreSQL/9.1/include" \
    "C:\Program Files\boost\boost_1_46_1"
win32:LIBS += \
    -L"C:\PostgreSQL\lib" -l"libpq"

unix:INCLUDEPATH += \
    /usr/include/postgresql/
unix:LIBS += \
    -lboost_thread \
    -L/usr/lib/postgresql/9.0/lib/ \
    -lpq

SOURCES += \
    main.cpp \
    porridgedb.cpp \
    pgresult.cpp \
    indexator.cpp \
    pgquery.cpp

HEADERS += \
    pgwb.h \
    swap_bytes.h \
    arra_size.h \
    session.h \
    porridgedb.h \
    pgresult.h \
    concurentqueue.h \
    indexator.h \
    pgquery.h














